package cn.edu.xju.test;

import cn.edu.xju.factory.StaticFactory;


public class Person {
    private String name;
    private String password;
    private int age;


    public Person(String name,String password, int age) {
        System.out.println("peron1");
        this.name = name;
        this.age = age;
        this.password = password;

    }

    public Person (int age ,String password,String name){
        System.out.println("peron2");
        this.name = name;
        this.age = age;
        this.password = password;
    }

    public Person (String name,int age,String password){
        System.out.println("peron3");
        this.name = name;
        this.age = age;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void init(){
        System.out.println("Person... init()....");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                '}';
    }
}
